import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/styles/index.scss'
import SvgIcon from '@/icons'
import 'element-plus/dist/index.css'
import '../src/router/permission'
import * as ElIcons from '@element-plus/icons-vue'
import i18n from '@/i18n'
import filters from './utils/filters'
import TreeTable from 'vue-table-with-tree-grid'
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css' // import styles
import 'quill/dist/quill.snow.css' // for snow theme
import 'quill/dist/quill.bubble.css' // for bubble theme
const app = createApp(App)
for (const iconName in ElIcons) {
  app.component(iconName, ElIcons[iconName])
  app.component('tree-table', TreeTable)
}
filters(app)
SvgIcon(app)
app.use(VueQuillEditor).use(store).use(router).use(i18n).mount('#app')
